//
//  LYCover.m
//  lottery
//
//  Created by 赵国腾 on 16/6/11.
//  Copyright © 2016年 赵国腾. All rights reserved.
//

#import "LYCover.h"
#import "LYActiveMenu.h"

@implementation LYCover

+ (void)show {
    
    LYCover *cover = [[LYCover alloc] initWithFrame:LYScreenBounds];
    
    cover.backgroundColor = [UIColor blackColor];
    cover.alpha = 0.5;
        
    [LYKeyWindow addSubview:cover];
}

+ (void)hide {
    
    for (UIView *view in LYKeyWindow.subviews) {
        
        if ([view isKindOfClass:[LYCover class]]) {
            
            [view removeFromSuperview];
        }
    }
}

@end
